﻿<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>js可拖拽位置瀑布流布局代码</title>
<script type="text/javascript" src="js/move.js"></script>
<script type="text/javascript" src="js/tuozhuai.js"></script>
<style type="text/css">
html, body, div, p, img, a {
	margin: 0 auto;
	padding: 0;
}
html, body {
	height: 100%;
}
body {
	padding: 0px 20px;
	box-sizing: border-box;
	font-family: "微软雅黑";
	font-size: 14px;
	background-color: #252525;
}
.img_100 img {
	width: 100%;
	max-width: 100%;
}
.margin_bottom_15 {
	margin-bottom: 15px;
}
.text_center {
	text-align: center;
}
.drag_div {
	margin-top: 30px;
	width: 1300px;
	height: 760px;
	overflow: hidden;
	position: relative;
}
.drag_div>div {
	background: #fff;
	padding: 5px;
	box-sizing: border-box;
	overflow: hidden;
}
.drag_div>div.one {
	position: absolute;
	top: 0;
	left: 0;
	width: 20%;
	height: 240px;
}
.drag_div>div.two {
	position: absolute;
	top: 260px;
	left: 0;
	width: 20%;
	height: 240px;
}
.drag_div>div.three {
	position: absolute;
	top: 520px;
	left: 0;
	width: 20%;
	height: 240px;
}
.drag_div>div.four {
	position: absolute;
	top: 0px;
	left: 21%;
	width: 37%;
	height: 760px;
}
.drag_div>div.five {
	position: absolute;
	top: 0px;
	left: 59%;
	width: 20%;
	height: 280px;
}
.drag_div>div.six {
	position: absolute;
	top: 300px;
	left: 59%;
	width: 20%;
	height: 220px;
}
.drag_div>div.seven {
	position: absolute;
	top: 540px;
	left: 59%;
	width: 20%;
	height: 220px;
}
.drag_div>div.eight {
	position: absolute;
	top: 0px;
	left: 80%;
	width: 20%;
	height: 280px;
}
.drag_div>div.nine {
	position: absolute;
	top: 300px;
	left: 80%;
	width: 20%;
	height: 220px;
}
.drag_div>div.ten {
	position: absolute;
	top: 540px;
	left: 80%;
	width: 20%;
	height: 220px;
}
.drag_div>div.ten {
	position: absolute;
	top: 540px;
	left: 80%;
	width: 20%;
	height: 220px;
}
.drag_div>div.eleven {
	position: absolute;
	top: 540px;
	left: 80%;
	width: 20%;
	height: 220px;
}
.drag_div>div.twelve {
	position: absolute;
	top: 540px;
	left: 80%;
	width: 20%;
	height: 220px;
}
.drag_div>div.thirteen {
	position: absolute;
	top: 540px;
	left: 80%;
	width: 20%;
	height: 220px;
}
.drag_div>div.fourteen {
	position: absolute;
	top: 540px;
	left: 80%;
	width: 20%;
	height: 220px;
}

.drag_div>div.one img, .drag_div>div.two img, .drag_div>div.three img {
	width: 100%;
	height: 180px;
}
.drag_div>div.four img {
	width: 100%;
	height: 700px;
}
.drag_div>div.five img, .drag_div>div.eight img {
	width: 100%;
	height: 220px;
}
.drag_div>div.six img, .drag_div>div.seven img, .drag_div>div.nine img, .drag_div>div.ten img {
	width: 100%;
	height: 160px;
}

</style>
</head>
<body>
<div class="drag_div" id="drag_div">
  <div class="one">
    <p class="img_100 margin_bottom_15"><img src="images/a4.png"></p>
    <p class="text_center"><a href="indexa.html">第一次作业</a></p>
  </div>
  <div class="two">
    <p class="img_100 margin_bottom_15"><img src="images/a2.png"></p>
    <p class="text_center"><a href="index.html">第二次作业</a></p>
  </div>
  <div class="three">
    <p class="img_100 margin_bottom_15"><img src="images/a3.png"></p>
    <p class="text_center"><a href="03\03.html"></a></p>
    <p class="text_center"><a href="03\03.html">第三次作业</a></p>
  </div>
  <div class="four">
    <p class="img_100 margin_bottom_15"><img src="images/a1.png"></p>
    <p class="text_center"><a href="04\css.html"></a></p>
    <p class="text_center"><a href="04/css.html">第四次作业</a></p>
  </div>
  <div class="five">
    <p class="img_100 margin_bottom_15"><img src="images/a5.png"></p>
    <p class="text_center"><a href="05\05.html"></a></p>
    <p class="text_center"><a href="05/05.html">第五次作业</a></p>
  </div>
  <div class="six">
    <p class="img_100 margin_bottom_15"><img src="images/a6.png"></p>
    <p class="text_center"><a href="6\06.html"></a></p>
    <p class="text_center"><a href="6\06.html">第六次作业</a></p>
  </div>
  <div class="seven">
    <p class="img_100 margin_bottom_15"><img src="images/a7.png"></p>
    <p class="text_center"><a href="7\clear.html"></a></p>
    <p class="text_center"><a href="7\clear.html">第七次作业</a></p>
  </div>
  <div class="eight">
    <p class="img_100 margin_bottom_15"><img src="images/a8.png"></p>
    <p class="text_center"><a href="08\index.html"></a></p>
    <p class="text_center"><a href="08/index.html">第八次作业</a></p>
  </div>
  <div class="nine">
    <p class="img_100 margin_bottom_15"><img src="images/a9.png"></p>
    <p class="text_center"><a href="09\index.html"></a></p>
    <p class="text_center"><a href="index1.html">第九次作业</a></p>
  </div>
  <div class="ten">
    <p class="img_100 margin_bottom_15"><img src="images/a10.png"></p>
    <p class="text_center"><a href="10\index.html"></a></p>
    <p class="text_center"><a href="10/index.html">第十周作业</a></p>
  </div>
  <div class="eleven">
    <p class="img_100 margin_bottom_15"><img src="images/a10.png"></p>
    <p class="text_center"><a href="11\index.html"></a></p>
    <p class="text_center"><a href="11/index.html">第十一周作业</a></p>
  </div><div class="twelve">
    <p class="img_100 margin_bottom_15"><img src="images/a10.png"></p>
    <p class="text_center"><a href="12\domevent.html"></a></p>
    <p class="text_center"><a href="12/domevent.html">第十二周作业</a></p>
  </div><div class="thirteen">
    <p class="img_100 margin_bottom_15"><img src="images/a10.png"></p>
    <p class="text_center"><a href="13\filter.html"></a></p>
    <p class="text_center"><a href="13/filter.html">第十三周作业</a></p>
  </div><div class="fourteen">
    <p class="img_100 margin_bottom_15"><img src="images/a10.png"></p>
    <p class="text_center"><a href="qimo\qimo1.html">期末作业</a></p>
  </div>
</div>

</body>
</html>
